package javase.ch03.homeWork.Test1;

public class Test {
    public static void main(String[] args) {
        Account account = new Account("邮政银行", 0);

        DepositThread deposit = new DepositThread(account);
        WithdrawThread withdraw = new WithdrawThread(account);

        new Thread(deposit, "粑粑").start();
        new Thread(deposit, "麻麻").start();
        new Thread(withdraw, "哥哥").start();
        new Thread(withdraw, "妹妹").start();
    }
}
